import {useContext} from 'react';
import AppContext from '../components/AppContext.js';

/**
`useApp` is a React hook that exposes a method to manually exit the app (unmount).
*/
const useApp = () => useContext(AppContext);
export default useApp;
